﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Metozis.Data;
using Metozis.Repo;
using Microsoft.Practices.Unity;

namespace Metozis
{
    internal class MetozisDataModule
    {
        public MetozisDataModule(IUnityContainer container)
        {
            container.RegisterType<Db,Db>(new ContainerControlledLifetimeManager());

            container.RegisterType<IReceipientInvoiceRepo, ReceipientInvoiceRepo>();
            container.RegisterType<IProductRepo,ProductRepo>();

        }
    }
}
